<%-- 
    Document   : login
    Created on : Mar 4, 2011, 7:25:16 PM
    Author     : kmye
--%>

<!-- Please remember to include me! -->
<%@taglib uri="/struts-tags" prefix="s"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login Form</title>
    </head>
    <!-- Link to external CSS -->
    <link type="text/css" rel="stylesheet" href="style.css">

    <body>
        <h3>Login</h3>
        <center>
            <!-- The form, Struts 2 automatically put it in a table so there is no need to create one -->
            <s:form action="Login">
                <!-- the name property links it to the ValueStack -->
                <s:textfield name="username" label="Username"/>
                <s:password  name ="password" label="Password"/>

                <s:select   label="Domain"
                            name="domain"
                            headerKey="3"
                            list="#{ '01':'Administrator',
                                     '02':'Teacher',
                                     '03':'Student'}"
                />
                <s:submit />
            </s:form>
        </center>
    </body>
</html>
